package com.dstz.bpm.api.model.nodedef;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

@ApiModel(
   description = "流程节点按钮定义"
)
public class Button implements Serializable {
   private static final long serialVersionUID = 1L;
   @ApiModelProperty("按钮名字")
   protected String name = "";
   @ApiModelProperty("按钮标识")
   protected String alias = "";
   @ApiModelProperty("按钮提交前置js脚本")
   protected String beforeScript = "";
   @ApiModelProperty("按钮提交后置js脚本")
   protected String afterScript = "";
   @ApiModelProperty("按钮后台权限 groovy脚本")
   protected String groovyScript = "";
   @ApiModelProperty("按钮对应控制器后端处理器更多配置信息页")
   protected String configPage = "";

   public Button() {
   }

   public Button(String name, String alias) {
      this.name = name;
      this.alias = alias;
   }

   public Button(String name, String alias, String groovyScript, String configPage) {
      this.name = name;
      this.alias = alias;
      this.groovyScript = groovyScript;
      this.configPage = configPage;
   }

   public String getName() {
      return this.name;
   }

   public void setName(String name) {
      this.name = name;
   }

   public String getAlias() {
      return this.alias;
   }

   public void setAlias(String alias) {
      this.alias = alias;
   }

   public String getBeforeScript() {
      return this.beforeScript;
   }

   public void setBeforeScript(String beforeScript) {
      this.beforeScript = beforeScript;
   }

   public String getAfterScript() {
      return this.afterScript;
   }

   public void setAfterScript(String afterScript) {
      this.afterScript = afterScript;
   }

   public String getGroovyScript() {
      return this.groovyScript;
   }

   public void setGroovyScript(String groovyScript) {
      this.groovyScript = groovyScript;
   }

   public String getConfigPage() {
      return this.configPage;
   }

   public void setConfigPage(String configPage) {
      this.configPage = configPage;
   }

   public String toString() {
      return "[name=" + this.name + ", alias=" + this.alias + "]";
   }
}
